public class Aa {
public static String reverse(String s){

int length=s.length();
StringBuffer result=new StringBuffer(length);
for(int i=length-1;i>=0;i--){
result.append(s.charAt(i));

}
return result.toString();
}
public static void main(String [] arg){
String b=Aa.reverse("01");
System.out.println(b);

}
} 
